1
general::
Phrase(s): pass through someone’s mind [and] cross someone’s mind
Fig. [for a thought] to come to mind briefly; [for an idea] to occur to someone. • Let me tell you what just crossed my mind. • As you were speaking, something passed through my mind that I’d like to discuss.
McGrawhill's American Idioms And Phrasal Verbs